package com.fish.gaiety.gateway.configuration;

import com.fish.gaiety.gateway.configuration.base.BaseAuditorAware;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

@Configuration
@EnableJpaAuditing
public class JpaAuditorConfig {

    @Bean
    @ConditionalOnMissingBean(name = "baseAuditorAware")
    BaseAuditorAware baseAuditorAware(){
        return new BaseAuditorAware();
    }
}
